<%@ page language="java" import="java.util.*,com.hs.core.utils.*,com.hs.core.utils.*,com.hs.auth.model.*,com.hs.core.cache.*" pageEncoding="utf-8"%>
<%
 	Map paperinfo = (Map)request.getAttribute("paperinfo");
 	List doctorlist = (List)request.getAttribute("doctorlist");
 	Map caseinfo = (Map)request.getAttribute("caseinfo");
 	DictCacheUtil cache = DictCacheUtil.getInst();
 	String xiyizlstr = (String)request.getAttribute("xiyizlstr");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html >
<head>
<%@ include file="../../include.jsp"%>  
<script src="<%=basePath %>app/js/nav.js"></script> 
</head>
<body>
<!--头部-->
<div class="header">
	<a class="logo" href="#"></a>
    <div class="banner"></div>
    <ul class="tool">
        <li><a href="javaScript:func4nav('8','<%=basePath %>');" class="index">首页</a></li> 
    	<!-- li><a href="#" class="login">登录</a></li-->
        <li><a href="#" class="register">注册</a></li>
               <li><a href="javaScript:logout('<%=basePath %>');" class="help">退出</a></li>

       
    </ul>
</div>
<!--/头部-->
<!--导航-->
<ul class="nav">
    <li class="active"><a href="javaScript:func4nav('1','<%=basePath %>');" class="nav-1">数据检索</a></li>     
	<li><a href="javaScript:func4nav('7','<%=basePath %>');" class="nav-7">按疾病统计</a></li>        
	<li><a href="javaScript:func4nav('4','<%=basePath %>');" class="nav-4">按单味药统计</a></li>   
    <li><a href="javaScript:func4nav('5','<%=basePath %>');" class="nav-5">按穴位统计</a></li>      
    <li><a href="javaScript:func4nav('6','<%=basePath %>');" class="nav-6">按给药方式统计</a></li>        
    <li><a href="javaScript:func4nav('2','<%=basePath %>');" class="nav-2">按职称分级统计</a></li>
    <li><a href="javaScript:func4nav('3','<%=basePath %>');" class="nav-3">按行医年数统计</a></li>
</ul>
<!--/导航-->
<div class="content">
	<h1><%=paperinfo==null?"":StringUtilTool.NULL2Blank((String)paperinfo.get("wenti")) %></h1>
	<!--医生信息-->
    <dl class="case-info">
    	<dt>医生信息</dt>
    	<%if(doctorlist !=null && doctorlist.size() > 0){
    			for(int i=0;i<doctorlist.size();i++){
    				Map doctorinfo = (Map)doctorlist.get(i);
    	%>
        <dd>
        <div>
        	 <strong><font size=4 color=red><%=StringUtilTool.NULL2Blank((String)doctorinfo.get("xingming"))%></font></strong><br/>
              <strong>职称:</strong><%=StringUtilTool.NULL2Blank((String)doctorinfo.get("zhicheng"))%>,&nbsp; 
             <strong>主治医生:</strong><%=StringUtilTool.NULL2Blank(cache.getConstantNameByCode(doctorinfo.get("shifouzz")+"", "shifouzz"))%>,&nbsp; 
           <strong> 职称分级:</strong><%=StringUtilTool.NULL2Blank(cache.getConstantNameByCode(doctorinfo.get("zhichengfj")+"", "zhichengfj"))%>,&nbsp; 
          <strong> 行医年数:</strong> <%=StringUtilTool.NULL2Blank(cache.getConstantNameByCode(doctorinfo.get("xingyins")+"", "xingyins"))%>,&nbsp; 
         <strong>  学位:</strong> <%=StringUtilTool.NULL2Blank(cache.getConstantNameByCode(doctorinfo.get("xuewei")+"", "xuewei"))%>,&nbsp;<br/>
         <strong>  老中医等级:</strong>  <%=StringUtilTool.NULL2Blank(cache.getConstantNameByCode(doctorinfo.get("laozhongydj")+"", "laozhongydj"))%>,&nbsp;
           <strong>    所在单位:</strong>  <%=StringUtilTool.NULL2Blank((String)doctorinfo.get("zuozhedw"))%>,&nbsp;
            <strong>      省份: </strong> <%=StringUtilTool.NULL2Blank((String)doctorinfo.get("zuozhesf"))%>,&nbsp;
            </div> 
        </dd>
        <%}} %>
    </dl>
    <!--/医生信息-->
    <!--医案信息-->
    <dl class="case-info">
    	<dt>医案信息</dt>
        <dd>
            <div>
            	<strong>姓名：</strong><%=caseinfo.get("huanzhexm")==null?"未知":caseinfo.get("huanzhexm")%>&nbsp;&nbsp;
            	<strong>性别：</strong><%=cache.getConstantNameByCode(caseinfo.get("xingbie")+"", "xingbie")%>&nbsp;&nbsp;
            	<strong>年龄：</strong><%=caseinfo.get("nianling")%><br />
                <strong>证候：</strong><%=StringUtilTool.NULL2Blank(caseinfo.get("zhenghoumc")+"")%> ,&nbsp;&nbsp;
                <strong>治法：</strong><%=StringUtilTool.NULL2Blank(caseinfo.get("zhifa")+"")%><br /> 
                <strong>诊断检查方法：</strong>
                <%
 					 List zhenduanlist = (List)caseinfo.get("zhenduanlist");               
                     if(null != zhenduanlist && zhenduanlist.size()>0){
                     	for(int j=0;j<zhenduanlist.size();j++){
                     		Map data = (Map)zhenduanlist.get(j);
                     		out.print(cache.getConstantNameByCode(data.get("leixing")+"", "leixing"));
                     		out.print(",");
                     		out.print(data.get("mingcheng"));
                     		out.print(",");
                     		out.print(cache.getConstantNameByCode(data.get("yongtu")+"", "yongtu"));
                     		out.print(";");
                     	}
                     }else{
                         out.print("无");
                     }
                
                 %>   <br /> 
              
                <strong>中医诊断疾病：</strong><%=StringUtilTool.NULL2Blank(caseinfo.get("zhongyizdgf")+"")%> ,&nbsp;&nbsp;
                <strong>西医诊断疾病：</strong><%=StringUtilTool.NULL2Blank(caseinfo.get("xiyizdgf")+"")%><br /> 
            </div> 
        </dd>
    </dl>
    <!--/医案信息-->
    <!--列表-->
    <table border="0" cellpadding="0" cellspacing="0" class="table-list">
      <tr>
        <th width="143">治疗方式</th>
        <th colspan="2">诊次</th>
        <th width="489">治疗内容</th>
      </tr>
       <%=xiyizlstr %>
    </table>
    <!--/列表-->
    <!--文摘信息-->
    <table border="0" cellpadding="0" cellspacing="0" class="digest-info">
       <caption>来源文献</caption>
       <tr>
         <th>作者：</th>
         <td><%=StringUtilTool.NULL2Blank((String)paperinfo.get("zuozhexm")) %></td>
       </tr>
       <tr>
         <th>作者单位：</th>
         <td><%=StringUtilTool.NULL2Blank((String)paperinfo.get("zuozhedw")) %></td>
       </tr>
       <tr>
         <th>刊名：</th>
         <td><%=StringUtilTool.NULL2Blank((String)paperinfo.get("qikanmc"))%>,&nbsp;<%=StringUtilTool.NULL2Blank( paperinfo.get("nian")+"") %>&nbsp;-&nbsp;<%=StringUtilTool.NULL2Blank( paperinfo.get("juan")+"") %>卷&nbsp;-&nbsp;<%=StringUtilTool.NULL2Blank(paperinfo.get("qi")+"") %>期</td>
       </tr>  
       <tr>
         <th>页码：</th>
         <td><%=StringUtilTool.NULL2Blank( paperinfo.get("yema")+"") %></td>
       </tr>
        
    </table>
    <!--/文摘信息-->
</div>
<!--版权-->
<div class="footer"><spring:message code="sys.copyright" /></div>
<!--/版权-->
</body>
</html>
